package org.msfj.common.enums;

/**
 * 是否,枚举类型
 * Created by yangyan on 16/8/11.
 */
public enum YesNo implements CodeValueEnum<Boolean> {
    YES(true, "是"),
    NO(false, "否");

    Boolean code = true;
    String value;

    @Override
    public String getValue() {
        return this.value;
    }

    @Override
    public Boolean getCode(){
        return this.code;
    }

    YesNo(Boolean code,String value) {
        this.code = code;
        this.value = value;
    }
}
